home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo mLib - TMi0SDGL(tm) Library Builder Version 1.04 (c) 1994,95 by B-coolWare.
- echo:
- if .%1. == .. goto Help
- if .%model%.==.. goto setModel
- goto okModel
- :setModel
- if "%2" == "s" goto Small
- if "%2" == "S" goto Small
- if "%2" == "m" goto Med
- if "%2" == "M" goto Med
- if "%2" == "c" goto Comp
- if "%2" == "C" goto Comp
- if "%2" == "l" goto Large
- if "%2" == "L" goto Large
- if "%2" == "h" goto Huge
- if "%2" == "H" goto Huge
- goto Help
- :Small
- set model=__SMALL__
- goto okModel
- :Med
- set model=__MEDIUM__
- goto okModel
- :Comp
- set model=__COMPACT__
- goto okModel
- :Large
- set model=__LARGE__
- goto okModel
- :Huge
- set model=__HUGE__
- :okModel
- echo Building C/C++ TMi0SDGL(tm) Library...
- tasm /t/m/d%model% cpuspeed, speed_c
- tasm /t/m/d%model% cpu_hl, cpu_c
- tasm /t/m/d%model% p5info
- tasm /t/m/d%model% smm
- bcc -m%2 -c -Ii:\borlandc\include cputype.c
- REM tcc -m%2 -c -Id:\turboc\include cputype
- rem ^-- unREM this if you're TC user
- REM cl /A%2 /c /Ox /FPi /Id:\msc5\include cputype
- rem ^-- unRem this if you're MSC user
- if exist %1%2.lib del %1%2.lib
- tlib %1%2 /C /0 +speed_c.obj +cpu_c.obj +cputype.obj +p5info.obj +smm.obj
- echo mLib done.
- goto Quit
- :Help
- echo usage: mlib libname s│c│m│l│h
- :Quit
- if %makeC% == ON goto Done
- set model=
- :Done